import 'package:flutter/material.dart';
import 'package:qqmusic/widget/itemmin1.dart';

class item2 extends StatefulWidget {
  item2({Key key}) : super(key: key);

  @override
  State<item2> createState() => _item2State();
}

class _item2State extends State<item2> with TickerProviderStateMixin {
  PageController controller;
  @override
  void initState() {
    super.initState();
    controller = PageController(initialPage: 0);
  }

  @override
  Widget build(BuildContext context) {
    return PageView.builder(
        controller: controller,
        itemCount: 3,
        scrollDirection: Axis.horizontal,
        itemBuilder: (context, index) {
          return Container(
            child: Column(
              children: [itemmin1(), itemmin1(), itemmin1()],
            ),
          );
        });
  }
}
